﻿#查找路径下面所有源文件
aux_source_directory(. SRC_LIST)

#设置debug项目名后缀
set(CMAKE_DEBUG_POSTFIX "_gd")

#设置静态库
add_library(testdll SHARED ${SRC_LIST})

#设置预编译
set_target_properties(testdll PROPERTIES COTIRE_CXX_PREFIX_HEADER_INIT "stdafx.h")
cotire(testdll)

#设置预处理
add_definitions(-DXTTO_EXPORTS)
#set_target_properties(target1 target2 PROPERTIES COMPILE_DEFINITIONS "COMPILE_UNIT_TESTS")

#设置目录
set_target_properties(testdll PROPERTIES FOLDER "TestCmake")

#复制头文件到inchhvi
install(FILES test.h DESTINATION ${PROJECT_SOURCE_DIR}/3rdlib/include)


